# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=fsverity-utils
pkgver=1.5
pkgrel=0
pkgdesc="userspace utilities for fs-verity"
url="https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/fsverity-utils.git"
arch="all"
license="GPL-2.0-or-later"
makedepends="openssl1.1-compat-dev linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/fsverity-utils.git/snapshot/fsverity-utils-$pkgver.tar.gz"

build() {
	make PREFIX=/usr
}

check() {
	make check
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="
4bde1e8238dcd461221112915b2384ec962cc40b37959194741264af9c0df4d1d4f69aba86cd7d12fb63ae673b3b79f6dd98999062b72247690807b0b81c9e27  fsverity-utils-1.5.tar.gz
"
